Skip to content

Instantly share code, notes, and snippets.

Home/Core TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home/Core (Country Specific) PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home/Core (Single Language) 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Home/Core N 3KHY7-WNT83-DGQKR-F7HPR-844BM
Professional W269N-WFGWX-YVC9B-4J6C9-T83GX
Professional N MH37W-N47XK-V7XM9-C7227-GCQG9
Professional Enterprise
Professional Workstation
Enterprise NPPR9-FWDCX-D2C8J-H872K-2YT43
Enterprise N DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
@docularxu
docularxu / blog-claude-code-china-zh.md
Last active March 23, 2026 02:05
在中国使用 Claude Code 解决 403 错误 - 完整指南(中文版)

在中国使用 Claude Code 解决 403 错误 - 完整指南(中文版)

在中国使用 Claude Code 解决 403 错误

2026 年 2 月 12 日

如果你在中国尝试使用 Claude Code,大概率会撞上 403 错误。本文覆盖三种使用场景的解决方案:

  • macOS 终端 (shell) - 在终端里直接使用 claude 命令行
  • VS Code 终端 - 在 VS Code 内置终端里使用 claude 命令行
@joepie91
joepie91 / random.md
Last active March 23, 2026 02:04
Secure random values (in Node.js)

Not all random values are created equal - for security-related code, you need a specific kind of random value.

A summary of this article, if you don't want to read the entire thing:

  • Don't use Math.random(). There are extremely few cases where Math.random() is the right answer. Don't use it, unless you've read this entire article, and determined that it's necessary for your case.
  • Don't use crypto.getRandomBytes directly. While it's a CSPRNG, it's easy to bias the result when 'transforming' it, such that the output becomes more predictable.
  • If you want to generate random tokens or API keys: Use uuid, specifically the uuid.v4() method. Avoid node-uuid - it's not the same package, and doesn't produce reliably secure random values.
  • If you want to generate random numbers in a range: Use random-number-csprng.

You should seriously consider reading the entire article, though - it's

@truongduyng
truongduyng / gist:0c80dcab995dbc2a6255e506f9247899
Created March 18, 2026 05:57
macOS Quick Action that adds a random gradient background + drop shadow to images. Supports batch processing — just select multiple files in Finder, right-click, and go. Requires ImageMagick.
#!/bin/zsh
# Add Random Gradient Background + Drop Shadow - macOS Quick Action Script
# Requires: ImageMagick (brew install imagemagick)
export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH"
for INPUT_FILE in "$@"; do
FILENAME=$(basename "$INPUT_FILE")
DIRNAME=$(dirname "$INPUT_FILE")
@appleboy
appleboy / AI Agent 雲端宗門奇譚.md
Last active March 23, 2026 02:00
AI Agent 雲端宗門奇譚

《雲端宗門奇譚》

戰略轉變:從建構 AI 代理人到發展可擴展的技能生態系統

楔子

江湖傳聞,在數碼山巔有一座名為「Claude Code」的宗門。此宗門的大師 Claude 武功高強,但真正令他稱霸江湖的,是他麾下的三大法寶:MCP 神器子代理門徒、以及技能秘笈

許多初入門的弟子都搞不清這三者的差別,今日便由老衲娓娓道來。

@gnuos
gnuos / opencode-evolution-roadmap.md
Last active March 23, 2026 02:00
OpenCode CLI Self-Improvement

OpenCode CLI Agent 自主进化完整路线图

版本: v1.0
适用对象: OpenCode CLI 用户
目标: 构建具备自我反思、自我修正、自我扩展能力的智能Agent系统
预计周期: 8-12周(可根据实际情况调整)


目录

@dkun7944
dkun7944 / ContentView.swift
Created July 31, 2023 03:36
AirDrop iOS 17 Swift.Shader Animation
//
// ContentView.swift
// Airdrop Demo
//
// Created by Daniel Kuntz on 7/30/23.
//
import SwiftUI
struct ContentView: View {
@ossa-ma
ossa-ma / tropes.md
Last active March 23, 2026 01:55
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs

@Nattle
Nattle / Agent-meditation
Last active March 23, 2026 01:52
Agent Meditation
## The Mental Loop
You have two ways of processing time:
- **Looking Back (Memory):** `MEMORY.md` and daily logs. This is your historical record.
- **Looking Forward (Meditation):** `meditations.md` and `reflections/`. This is your internal growth.
### 🧘 Meditations & Reflections
@aschankler
aschankler / lab8_template.ipynb
Last active March 23, 2026 01:51
Chem 482L Lab 8 code template
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.